package com.pubinfo.passbook.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 变量占位符
 *
 * @author zhouch
 * @date 2021/12/14 10:13
 */
@Data
@NoArgsConstructor
@ApiModel("常量占位符")
public class TEnginePlaceholderConst {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("常量名称")
    @NotBlank(message = "常量名称不能为空")
    private String name;

    @ApiModelProperty("常量值")
    @NotNull(message = "常量值不能为空")
    private BigDecimal value;

    @ApiModelProperty("描述")
    private String description;
}
